package com.pyk.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Question {

    private Long questionId;//自动注入


    private String name; //题目

    private String typeId; //只有五种 简答(short_answer) 选择（single_choice） 判断题() 多选 天空

    private Long courseId;//课程id

    private LocalDateTime createTime;//时间

    private LocalDateTime updateTime;

    private String optionA;

    private String optionB;

    private String optionC;

    private String optionD;//选项

    private String answer; //答案

    private String courseName;

    private String typeName;

    private String typeScore;
    @Override
    public String toString() {
        return questionId+" "+name+" "+typeId+" "+courseId+" "+createTime+" "+updateTime;
    }
}

